/**************************************************************************************************
*******
**************************************************************************************************/

/**************************************************************************************************
    Filename:       gpio_demo.c
    Revised:        $Date $
    Revision:       $Revision $


**************************************************************************************************/

/*********************************************************************
    INCLUDES
*/

#include "OSAL.h"
#include "i2c_demo.h"
#include "log.h"
#include "gpio.h"


void my_usart_init(void)
{
    uart_Cfg_t cfg =
    {
        .tx_pin = P20,
        .rx_pin = P18,
        .rts_pin = GPIO_DUMMY,
        .cts_pin = GPIO_DUMMY,
        .baudrate = 115200,
        .use_fifo = TRUE,
        .hw_fwctrl = FALSE,
        .use_tx_buf = FALSE,
        .parity     = FALSE,
        .evt_handler = NULL,
    };
    hal_uart_init(cfg, UART1);//uart init
		
}

void my_usart_sendBuff(uint8_t*data, uint8_t size)
{
	hal_uart_send_buff(UART1, (uint8_t*)data, size);
}
